/*
 * @Author: Setsuna
 * @Email: setsuna.xyz@qq.com
 * @FilePath: \src\lib\ui\UdMain\index.tsx
 * @Date: 2022-12-05 10:44:43
 * @LastEditTime: 2022-12-22 20:05:03
 * @LastEditors: Setsuna
 */
import React, { CSSProperties, ReactNode } from 'react'
import { Value } from 'classnames'
import classNames from 'classnames'

/**
 * 页面主体
 */
const UdMain: React.FC<IUdMainProps> = (props: IUdMainProps) => {
  return <div style={props.style} className={classNames('ud-main', props.className)}>{props.children}</div>
}

interface IUdMainProps {
  /**
   * style
   */
  style?: CSSProperties
  /**
   * 不管传没传，都会有一个 `ud-main` 的 className
   */
  className?: Value
  /**
   * 页面内容
   */
  children: ReactNode
}


export default UdMain
